/*
 * @Description:
 * @Author: maxyang
 * @Date: 2022-06-28 07:14:51
 * @LastEditTime: 2022-06-28 07:27:19
 * @LastEditors: liutq
 * @Reference:
 */
package admin

import (
	"net/http"

	"github.com/gin-gonic/gin"
	"github.com/maxyang107/jinglan/common"
)

/**
 * @description: 方法描述：获取临时授权
 * @Author: maxyang
 * @return {*}
 * @param {*gin.Context} c
 */
func ProvisionalAuthorization(c *gin.Context) {
	arr, err := common.ProvisionalAuthorization()
	if err != nil {
		common.ResponseToJson(http.StatusOK, common.Fail, err.Error(), c)
	}

	common.ResponseDetailToJson(http.StatusOK, arr, "success", c)

}
